package cn.wei.youvierpc.registry;

import cn.wei.youvierpc.model.ServiceMetaInfo;

import java.util.List;

public class RegistryServiceCache {

    List<ServiceMetaInfo> serviceMetaInfos;

    void writeCache(List<ServiceMetaInfo> serviceMetaInfos) {
        this.serviceMetaInfos = serviceMetaInfos;
    }

    List<ServiceMetaInfo> readCache() {
        return this.serviceMetaInfos;
    }

    void clearCache() {
        this.serviceMetaInfos = null;
    }
}
